package com.moba.service;

import com.moba.domain.UserRelationPar;
import com.moba.mapper.UserRelationParMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author liu, jia
 * @version 2019-09-30 17:14
 * @date 2019-09-30 17:14
 */
@Service
@Transactional
public class UserRelationParService {

  @Resource private UserRelationParMapper userRelationParMapper;

  public UserRelationPar getEntity(UserRelationPar t) {
    return this.userRelationParMapper.selectEntity(t);
  }

  public Integer getEntityCount(UserRelationPar t) {
    return this.userRelationParMapper.selectEntityCount(t);
  }

  public List<UserRelationPar> getEntityList(UserRelationPar t) {
    return this.userRelationParMapper.selectEntityList(t);
  }

  public Integer createEntity(UserRelationPar t) {
    this.userRelationParMapper.insertEntity(t);
    return t.getId();
  }

  public int updateEntity(UserRelationPar t) {
    return this.userRelationParMapper.updateEntity(t);
  }

  public int removeEntity(UserRelationPar t) {
    return this.userRelationParMapper.deleteEntity(t);
  }

  public List<UserRelationPar> getEntityPaginatedList(UserRelationPar t) {
    return this.userRelationParMapper.selectEntityPaginatedList(t);
  }

  public BigDecimal getUserSonSumMoneyLeiji(UserRelationPar t) {
    return this.userRelationParMapper.selectUserSonSumMoneyLeiji(t);
  }

  public List<UserRelationPar> getUserSonBiRecordList(UserRelationPar t) {
    return this.userRelationParMapper.selectUserSonBiRecordList(t);
  }
}
